package DBUtility;

public class SearchInfo {
    
    private String fieldName;
    private Object fieldValue;
    private SqlOperator sqlOperator;
    private boolean excludeIfEmpty = false;
    
    public SearchInfo() {
        
    }
    
    public SearchInfo(String fieldName, Object fieldValue, SqlOperator sqlOperator) {
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
        this.sqlOperator = sqlOperator;
    }
    
    public SearchInfo(String fieldName, Object fieldValue, SqlOperator sqlOperator, boolean excludeIfEmpty) {
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
        this.sqlOperator = sqlOperator;
        this.excludeIfEmpty = excludeIfEmpty;
    }
    
    public String getFieldName() {
        return fieldName;
    }
    
    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }
    
    public Object getFieldValue() {
        return fieldValue;
    }
    
    public void setFieldValue(Object fieldValue) {
        this.fieldValue = fieldValue;
    }
    
    public SqlOperator getSqlOperator() {
        return sqlOperator;
    }
    
    public void setSqlOperator(SqlOperator sqlOperator) {
        this.sqlOperator = sqlOperator;
    }
    
    public boolean isExcludeIfEmpty() {
        return excludeIfEmpty;
    }
    
    public void setExcludeIfEmpty(boolean excludeIfEmpty) {
        this.excludeIfEmpty = excludeIfEmpty;
    }
}